package com.lemote.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author wuhui
 * @time 2011-7-16 下午01:43:18
 * @Version:0.0.1
 * @since smt
 */
@Entity
@Table(name = "smt_operationRecord")
public class OperationRecord extends IdEntity {

	/**
	 * 板子
	 */
	private CircuitBoard board;

	/**
	 * 操作时间
	 */
	private Date createDate;

	/**
	 * 岗位
	 */
	private String jobName;

	/**
	 * 操作名称
	 */
	private String operateName;

	/**
	 * 操作类型
	 */
	private String type;
	
	/**
	 * 操作人
	 */
	private User user;
	
	@ManyToOne
	@JoinColumn(name="boardId")
	public CircuitBoard getBoard() {
		return board;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public String getJobName() {
		return jobName;
	}

	public String getOperateName() {
		return operateName;
	}

	public String getType() {
		return type;
	}
	@ManyToOne
	@JoinColumn(name="userid")
	public User getUser() {
		return user;
	}

	public void setBoard(CircuitBoard board) {
		this.board = board;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public void setOperateName(String operateName) {
		this.operateName = operateName;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setUser(User user) {
		this.user = user;
	}

}